#include<bits/stdc++.h>
using namespace std;
bool cmp(int x,int y){
    return x<=y;
}
int main(){
    freopen("duel.in","r",stdin);
    freopen("duel.out","w",stdout);
    int n,r[100005];
    cin>>n;
    for(int i=1;i<=n;i++){
        cin>>r[i];
    }
    sort(r+1,r+1+n,cmp);
    int a=1,b=2,cnt=n;
    while(b<=n){
        while(r[a]==r[b]){
            b++;
        }
        cnt--;
        a++;
        b++;
    }
    cout<<cnt;
    fclose(stdin);
    fclose(stdout);
    return 0;
}
